package javango.forms.widgets;

import java.util.Map;

public class HiddenInputWidget extends TextInputWidget {
	
	public HiddenInputWidget() {
		super();
		setHidden(true);
	}

	public HiddenInputWidget(Map<String, Object> attrs) {
		super(attrs);
		setHidden(true);
	}
	
	/**
	 * hidden input widget should not be displayed even if the form is read only
	 */
	@Override
	public String asText(Object value) {
		return "";
	}
}
